﻿using System.IO;
using System;

namespace YTPD.Lib
{
  internal class Utilities
  {
    public static void TryDeleteFile(string fileName)
    {
      try
      {
        deleteFile(fileName);
      }
      catch(System.IO.IOException exception)
      {
        handleFileInUseException(exception);
      }
    }

    private static void deleteFile(string fileName)
    {
      File.Delete(fileName);
    }

    private static void handleFileInUseException(IOException exception)
    {
    }
  }
}
